Module: env
Schema of environment variables of the application.
This module is written in JS so it can be imported into next.config.mjs. This module can also be imported into TS.
References
devEnvSchema
Renames and re-exports allEnvVarsSchema
Variables
allEnvVarsSchema
• Const
allEnvVarsSchema: ZodObject
<{ DATABASE_URL
: ZodString
; FORMIO_ROOT_EMAIL
: ZodString
; FORMIO_ROOT_PASSWORD
: ZodString
; FORMIO_SERVER_URL
: ZodString
; NEXTAUTH_SECRET
: ZodString
; NEXTAUTH_URL
: ZodString
; NEXT_PUBLIC_FORMIO_BASE_URL
: ZodString
; NEXT_PUBLIC_INTERNAL_NEXT_SERVER_URL
: ZodString
}, "strip"
, ZodTypeAny
, { DATABASE_URL
: string
; FORMIO_ROOT_EMAIL
: string
; FORMIO_ROOT_PASSWORD
: string
; FORMIO_SERVER_URL
: string
; NEXTAUTH_SECRET
: string
; NEXTAUTH_URL
: string
; NEXT_PUBLIC_FORMIO_BASE_URL
: string
; NEXT_PUBLIC_INTERNAL_NEXT_SERVER_URL
: string
}, { DATABASE_URL
: string
; FORMIO_ROOT_EMAIL
: string
; FORMIO_ROOT_PASSWORD
: string
; FORMIO_SERVER_URL
: string
; NEXTAUTH_SECRET
: string
; NEXTAUTH_URL
: string
; NEXT_PUBLIC_FORMIO_BASE_URL
: string
; NEXT_PUBLIC_INTERNAL_NEXT_SERVER_URL
: string
}>
All environment variables are specified here. This schema is used in dev mode.
Defined in
productionBuildEnvSchema
• Const
productionBuildEnvSchema: ZodObject
<Pick
<{ DATABASE_URL
: ZodString
; FORMIO_ROOT_EMAIL
: ZodString
; FORMIO_ROOT_PASSWORD
: ZodString
; FORMIO_SERVER_URL
: ZodString
; NEXTAUTH_SECRET
: ZodString
; NEXTAUTH_URL
: ZodString
; NEXT_PUBLIC_FORMIO_BASE_URL
: ZodString
; NEXT_PUBLIC_INTERNAL_NEXT_SERVER_URL
: ZodString
}, "NEXT_PUBLIC_FORMIO_BASE_URL"
| "NEXTAUTH_URL"
| "NEXTAUTH_SECRET"
| "FORMIO_ROOT_EMAIL"
| "FORMIO_ROOT_PASSWORD"
| "FORMIO_SERVER_URL"
| "DATABASE_URL"
| "NEXT_PUBLIC_INTERNAL_NEXT_SERVER_URL"
>, "strip"
, ZodTypeAny
, { DATABASE_URL
: string
; FORMIO_ROOT_EMAIL
: string
; FORMIO_ROOT_PASSWORD
: string
; FORMIO_SERVER_URL
: string
; NEXTAUTH_SECRET
: string
; NEXTAUTH_URL
: string
; NEXT_PUBLIC_FORMIO_BASE_URL
: string
; NEXT_PUBLIC_INTERNAL_NEXT_SERVER_URL
: string
}, { DATABASE_URL
: string
; FORMIO_ROOT_EMAIL
: string
; FORMIO_ROOT_PASSWORD
: string
; FORMIO_SERVER_URL
: string
; NEXTAUTH_SECRET
: string
; NEXTAUTH_URL
: string
; NEXT_PUBLIC_FORMIO_BASE_URL
: string
; NEXT_PUBLIC_INTERNAL_NEXT_SERVER_URL
: string
}>
Environment variables needed during production build.
Defined in
productionServerEnvSchema
• Const
productionServerEnvSchema: ZodObject
<Omit
<{ DATABASE_URL
: ZodString
; FORMIO_ROOT_EMAIL
: ZodString
; FORMIO_ROOT_PASSWORD
: ZodString
; FORMIO_SERVER_URL
: ZodString
; NEXTAUTH_SECRET
: ZodString
; NEXTAUTH_URL
: ZodString
; NEXT_PUBLIC_FORMIO_BASE_URL
: ZodString
; NEXT_PUBLIC_INTERNAL_NEXT_SERVER_URL
: ZodString
}, string
| number
>, "strip"
, ZodTypeAny
, , >
Environment variables needed for starting the production server.
Defined in
testEnvSchema
• Const
testEnvSchema: ZodObject
<Pick
<{ DATABASE_URL
: ZodString
; FORMIO_ROOT_EMAIL
: ZodString
; FORMIO_ROOT_PASSWORD
: ZodString
; FORMIO_SERVER_URL
: ZodString
; NEXTAUTH_SECRET
: ZodString
; NEXTAUTH_URL
: ZodString
; NEXT_PUBLIC_FORMIO_BASE_URL
: ZodString
; NEXT_PUBLIC_INTERNAL_NEXT_SERVER_URL
: ZodString
}, never
>, "strip"
, ZodTypeAny
, , >
Environment variables needed for testing.